package xfsale.packet;

import xfsale.util.ObjectUtil;
import java.io.Serializable;

public abstract class BaseRequest implements Serializable {

    public Object get(String propName) {
        return ObjectUtil.getProperty(this, propName);
    }

    public void set(String propName, Object propValue) {
        ObjectUtil.setProperty(this, propName, propValue);
    }

    public boolean has(String propName) {
        return ObjectUtil.hasProperty(this, propName);
    }

    public String getString(String propName) {
        return (String) this.get(propName);
    }

    public void setString(String propName, String propValue) {
        this.set(propName, propValue);
    }
}
